/*
 * @Descripttion: 组件业务名
 * @version:
 * @Author: lhl
 * @Date: 2024-11-18 18:29:11
 * @LastEditors: lhl
 * @LastEditTime: 2024-11-18 20:41:20
 */
/*
 * @Descripttion: 组件业务名
 * @version:
 * @Author: lhl
 * @Date: 2024-11-18 18:29:11
 * @LastEditors: lhl
 * @LastEditTime: 2024-11-18 20:41:02
 */
/*
 * @Descripttion: 用户登录相关mock数据
 * @version:
 * @Author: lhl
 * @Date: 2024-09-13 15:28:26
 * @LastEditors: lhl
 * @LastEditTime: 2024-11-18 20:38:12
 */

// mock/menu.ts
export default [
  // 路由菜单接口
  {
    url: '/api/menu/route',
    method: 'get',
    response: () => {
      // 如果有返回成功信息
      return {
        code: 200,
        data: [
          {
            path: '/dashboard',
            component: 'Layout',
            name: 'Dashboard',
            meta: {
              title: '首页',
              icon: 'AppstoreOutlined',
              hidden: false,
              alwaysShow: false,
            },
          },
          {
            path: '/system',
            component: 'Layout',
            redirect: '/system/user',
            name: '/system',
            meta: {
              title: '系统管理',
              icon: 'SettingOutlined',
              hidden: false,
              alwaysShow: false,
              params: null,
            },
            children: [
              {
                path: 'user',
                component: 'system/user/index',
                name: 'User',
                meta: {
                  title: '用户管理',
                  icon: 'UserOutlined',
                  hidden: false,
                  keepAlive: true,
                  alwaysShow: false,
                  params: null,
                },
              },
              {
                path: 'role',
                component: 'system/role/index',
                name: 'Role',
                meta: {
                  title: '角色管理',
                  icon: 'UserSwitchOutlined',
                  hidden: false,
                  keepAlive: true,
                  alwaysShow: false,
                  params: null,
                },
              },
              {
                path: 'menu',
                component: 'system/menu/index',
                name: 'SysMenu',
                meta: {
                  title: '菜单管理',
                  icon: 'ProductOutlined',
                  hidden: false,
                  keepAlive: true,
                  alwaysShow: false,
                  params: null,
                },
              },
              {
                path: 'dept',
                component: 'system/dept/index',
                name: 'Dept',
                meta: {
                  title: '部门管理',
                  icon: 'UsergroupDeleteOutlined',
                  hidden: false,
                  keepAlive: true,
                  alwaysShow: false,
                  params: null,
                },
              },
              {
                path: 'dict',
                component: 'system/dict/index',
                name: 'Dict',
                meta: {
                  title: '字典管理',
                  icon: 'ReadOutlined',
                  hidden: false,
                  keepAlive: true,
                  alwaysShow: false,
                  params: null,
                },
              },
            ],
          },
          {
            path: '/doc',
            component: 'Layout',
            redirect: 'https://juejin.cn/post/7228990409909108793',
            name: '/doc',
            meta: {
              title: '平台文档',
              icon: 'LayoutOutlined',
              hidden: false,
              alwaysShow: false,
              params: null,
            },
            children: [
              {
                path: 'internal-doc',
                component: 'demo/internal-doc',
                name: 'InternalDoc',
                meta: {
                  title: 'document',
                  icon: 'LayoutOutlined',
                  hidden: false,
                  alwaysShow: false,
                  params: null,
                },
              },
              {
                path: 'https://juejin.cn/post/7228990409909108793',
                name: 'Https://juejin.cn/post/7228990409909108793',
                meta: {
                  title: '平台文档(外链)',
                  icon: 'IeOutlined',
                  hidden: false,
                  alwaysShow: false,
                  params: null,
                },
              },
            ],
          },
          {
            path: '/multi-level',
            component: 'Layout',
            name: '/multiLevel',
            meta: {
              title: '多级菜单',
              icon: 'SplitCellsOutlined',
              hidden: false,
              alwaysShow: true,
              params: null,
            },
            children: [
              {
                path: 'multi-level1',
                component: '/multi-level/level1',
                name: 'MultiLevel1',
                meta: {
                  title: '菜单一级',
                  icon: '',
                  hidden: false,
                  alwaysShow: true,
                  params: null,
                },
                children: [
                  {
                    path: 'multi-level2',
                    component: '/multi-level/children/level2',
                    name: 'MultiLevel2',
                    meta: {
                      title: '菜单二级',
                      icon: '',
                      hidden: false,
                      alwaysShow: false,
                      params: null,
                    },
                    children: [
                      {
                        path: 'multi-level3-1',
                        component: 'demo/multi-level/children/children/level3-1',
                        name: 'MultiLevel31',
                        meta: {
                          title: '菜单三级-1',
                          icon: '',
                          hidden: false,
                          keepAlive: true,
                          alwaysShow: false,
                          params: null,
                        },
                      },
                      {
                        path: 'multi-level3-2',
                        component: 'demo/multi-level/children/children/level3-2',
                        name: 'MultiLevel32',
                        meta: {
                          title: '菜单三级-2',
                          icon: '',
                          hidden: false,
                          keepAlive: true,
                          alwaysShow: false,
                          params: null,
                        },
                      },
                    ],
                  },
                ],
              },
            ],
          },
        ],
        msg: '请求成功',
      };
    },
  },
];
